#!/usr/bin/python

import sys
import os
import glob
from math import sqrt,pow
PlotConfig= '../Plot/'
sys.path.append(PlotConfig)

#######################################################################
## A simple script to calculate results
## with log_eff files
## This is embolded in this analysis package
## i) new feature: add statistic error for MC, 10/20/2010
########################################################################

from cal_result import cal_result

cutset=["NOM", "SET1", "SET2", "SET3", "SET4", "SET12", "SET13", "SET14", "SET23", "SET24", "SET34", "SET123", "SET124", "SET134", "SET234", "SET1234"]

ch=["ee", "mm", "em", "incl"]

sig="VBS-sig"

for set in cutset:
    for chn in ch:
        prefix="log_eff_"+chn
        output=set+"_total_results_"+chn
        cal_result(prefix, set, sig, output)
        
